package design.p13_strategy;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-19 09:45
 **/
public abstract class AbstractCalculator {

    public int[] spilt(String exp,String opt){

        String[] array = exp.split(opt);
        int[] intArray = new int[2];
        intArray[0] = Integer.parseInt(array[0]);
        intArray[1] = Integer.parseInt(array[1]);

        return intArray;
    }
}

